#include <stdlib.h>
#include "player.h"

Player* Player_create(int x, int y, char image) {
	Player* p = (Player*)malloc(sizeof(Player));
	(*p).image = image;
	Player_setPosition(p, x, y);

	return p;
}

void Player_destroy(Player* p) {
	free(p);
}

void Player_setPosition(Player* p, int x, int y) {
	(*p).x = x;
	(*p).y = y;
}
